import { ref } from 'vue';

const useOneClickBalance = () => {

    const oneClickBalanceVisible = ref(false);
    const oneClickBalanceObj = ref({});

    /** 打开 一键平账 弹窗 */
    const handlOpenOneClickBalance = async (row: any) => {
        oneClickBalanceObj.value = row;
        oneClickBalanceVisible.value = true;
    };

    return {
        oneClickBalanceVisible,
        oneClickBalanceObj,
        handlOpenOneClickBalance,
    }
};

export default useOneClickBalance;
